import javax.swing.*;
import java.awt.*;
import java.util.*;
class P3 extends JPanel{
	JButton[] btn2 = new JButton[4];
	JButton eq = new JButton("计算");
	public P3(){
		for(int i=0;i<4;i++){
			String[] s={"*","/","-","+"};
			btn2[i] = new JButton(s[i]);
			btn2[i].addActionListener(new click(s[i]));
			this.add(btn2[i]);
		}
		eq.addActionListener(new click("="));
		this.add(eq);

	}
}
